/*************************************************************************
	> File Name: 147.大数的奇偶性.c
	> Author: xiangpeng cai
	> Mail: 
	> Created Time: Sun 04 Jul 2021 07:17:01 AM PDT
 ************************************************************************/

#include<stdio.h>
#include<string.h>

char input[10001];

int main() {
    scanf("%s", input);
    int len = strlen(input);

    if (input[len - 1] % 2 == 0) {
        printf("YES\n");
        return 0;
    }
    printf("NO\n");
    return 0;
}
